home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / qdos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  1.4 KB  |  56 lines

  1. #ifndef _QDOS_H_
  2. #define _QDOS_H_
  3.  
  4. #ifdef __NDPC__
  5. #include <os.h>
  6. #define __NO32FARPTR__
  7. #else /* __NDPC__ */
  8. #if defined(_MSC_VER) && (_M_IX86 >= 300)
  9. #include <pldos32.h> /* __MSC32__ gets defined in here */
  10. #define __NO32FARPTR__
  11. #else /* __MSC32__ */
  12. #ifndef __OS2__ /* RSI DAVIDL */
  13. #include <dos.h>
  14. #else
  15. #include <regs.h>
  16. #endif
  17. #endif /* __MSC32__ */
  18. #endif /* __NDPC__ */
  19.  
  20. #if defined(__ZTC__) && defined(DOS386)
  21.  #define INT86(a,b,c) int86_real(a,b,b)
  22.  #define INT86x(a,b,c) int86x_real(a,b,b,c)
  23. #else /* __ZTC__ */
  24.  #if defined(__WATCOMC__) || defined(__OS2__)
  25.   #define INT86(a,b,c) int386(a,b,b)
  26.   #define INT86x(a,b,c) int386x(a,b,b,c)
  27.  #else /* __WATCOMC__ */
  28.   #ifdef __NDPC__
  29.    #define INT86(a,b,c) int386(a,b,b)
  30.    #define INT86x(a,b,c) int386x(a,b,b,c)
  31.   #else /* __NDPC__ */
  32.    #ifdef __MSC32__
  33.     #define INT86(a,b,c) _int86(a,b,b)
  34.     #define INT86x(a,b,c) _int86x(a,b,b,c)
  35.    #else /* __MSC32__ */
  36.     #define INT86(a,b,c) int86(a,b,b)
  37.     #define INT86x(a,b,c) int86x(a,b,b,c)
  38.    #endif /* __MSC32 */
  39.   #endif /* __NDPC__ */
  40.  #endif /* __WATCOMC__ */
  41. #endif /* __ZTC__ */
  42.  
  43. #if defined(__WATCOMC__) || defined(__NDPC__) || defined(__MSC32__) || defined(__OS2__)
  44. #define REG16 w
  45. #else
  46. #define REG16 x
  47. #endif
  48.  
  49. #ifdef __MSC32__
  50. #define REGS _REGS
  51. #define SREGS _SREGS
  52. #else
  53. #endif /* __MSC32 */ 
  54.  
  55. #endif /* _QDOS_H_ */
  56.